/**
 *  @file SDLGameSection.h
 *
 *  @date 24-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLGAMESECTION_H_
#define SDLGAMESECTION_H_

#include "SDLApplicationSection.h"
#include "SDLGameEngine.h"
#include "SDLApplication.h"
#include "SDLWindow.h"

namespace si_sdl
{
/**
 * Section the program will be in when playing the game. This will make the gameEngine run.
 */
class SDLGameSection: public si_sdl::SDLApplicationSection
{
public:
	SDLGameSection(SDLApplication& parent, SDLWindow& win);
	virtual ~SDLGameSection();

	virtual void onSDLEvent(SDL_Event& event);
	virtual void newFrame(double timeSinceLastFrame);

	virtual void youreStarting();
private:
	SDLGameEngine* fGameEngine;
};

}

#endif /* SDLGAMESECTION_H_ */
